import axios from 'axios';

let base = '';
//提交完善信息数据
export const perfectuserinfo = params => {
  return axios.post(`${base}/api/v1/register/perfectuserinfo`, params).then(res => res.data);
};
//上传身份证
export const imagerecognition = params => {
  return axios.post(`${base}/api/v1/register/imagerecognition`, params).then(res => res.data);
};
//提醒任务
export const RemindTask = params => {
  return axios.post(`${base}/api/v1/apprentice/remindtask`, params).then(res => res.data);
};
//审核徒弟
// export const RemindTask = params => {
//   return axios.post(`${base}/api/v1/apprentice/remindtask`, params).then(res => res.data);
// };
//Rank列表
export const RankList = params => {
  return axios.get(`${base}/api/v1/user/leaderboard`, params).then(res => res.data);
};
//
export const reminder_submit = params => {
  return axios.post(`${base}/api/v1/user/reminder_submit`, params).then(res => res.data);
};
//
export const reminder_no = params => {
  return axios.post(`${base}/api/v1/user/reminder_no`, params).then(res => res.data);
};
//上传淘气值
export const tbimageRecognition = params => {
  return axios.post(`${base}/api/v1/register/tbimageRecognition`, params).then(res => res.data);
};
//发送验证码
export const sendcode = params => {
  return axios.post(`${base}/api/register/sendcode`, params).then(res => res.data);
};
//获取用户信息
export const getuserinfo = params => {
  return axios.get(`${base}/api/v1/user/getuserinfo`, {
    params: params
  });
};
//获取平台通知列表
export const bulletin_list = params => {
  return axios.post(`${base}/api/v1/bulletin/bulletin_list`, params).then(res => res.data);
};
//提交申诉
export const initite_appeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/initite_appeal`, params).then(res => res.data);
};
//我发起的申诉
export const Appeallist = params => {
  return axios.post(`${base}/api/v1/PI/appeal/Appeallist`, params).then(res => res.data);
};
//我收到的申诉
export const receive_appeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/receive_appeal`, params).then(res => res.data);
};
//申诉待处理
export const dealwith_appeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/dealwith_appeal`, params).then(res => res.data);
};
//删除申诉
export const deleAppeal = params => {
  return axios.post(`${base}/api/v1/PI/appeal/deleAppeal`, params).then(res => res.data);
};
//客服中心
export const create_customer = params => {
  return axios.post(`${base}/api/v1/customer/create_customer`, params).then(res => res.data);
};
//申请任务
export const submessage = params => {
  return axios.post(`${base}/api/v1/PI/task/submessage`, params).then(res => res.data);
};
//获取任务状态
export const getuserstatus = params => {
  return axios.get(`${base}/api/v1/user/getuserstatus`, {
    params: params
  });
};
//领取任务
export const identifytask = params => {
  return axios.post(`${base}/api/v1/PI/user/identifytask`, params).then(res => res.data);
};
//取消任务
export const cancelqueue = params => {
  return axios.post(`${base}/api/v1/PI/task/cancelqueue`, params).then(res => res.data);
};
//获取任务详情
export const taskprogress = params => {
  return axios.post(`${base}/api/v1/PI/task/taskprogress`, params).then(res => res.data);
};
//验证淘口令
export const verificationtkl = params => {
  return axios.post(`${base}/api/v1/PI/task/verificationtkl`, params).then(res => res.data);
};
//任务情况
export const prompttask = params => {
  return axios.post(`${base}/api/v1/task/prompttask`, params).then(res => res.data);
};
//我已付款
export const syncorder = params => {
  return axios.post(`${base}/api/v1/PI/order/syncorder`, params).then(res => res.data);
};
//任务进度取消任务
export const cancelTask = params => {
  return axios.post(`${base}/api/v1/PI/task/cancelTask`, params).then(res => res.data);
};
//任务管理
export const tasklist = params => {
  return axios.post(`${base}/api/v1/task/tasklist`, params).then(res => res.data);
};
//徒弟列表
export const apprenticelist = params => {
  return axios.post(`${base}/api/v1/apprentice/apprenticelist`, params).then(res => res.data);
};
//拉黑个人
export const laheApprentice = params => {
  return axios.post(`${base}/api/v1/apprentice/laheApprentice`, params).then(res => res.data);
};
//升级师傅
export const upgradeapprentice = params => {
  return axios.post(`${base}/api/v1/apprentice/upgradeapprentice`, params).then(res => res.data);
};
//暂停收徒
export const timeoutapprentice = params => {
  return axios.post(`${base}/api/v1/apprentice/timeoutapprentice`, params).then(res => res.data);
};
//授权
export const login = params => {
  return axios.post(`${base}/api/login`, params).then(res => res.data);
};
//新旧用户
export const oldphoneinfo = params => {
  return axios.post(`${base}/api/oldphoneinfo`, params).then(res => res.data);
};
//邀请二维码
export const verification_yqm = params => {
  return axios.post(`${base}/api/verification_yqm`, params).then(res => res.data);
};
//本金提现
export const capitalwithdraw = params => {
  return axios.post(`${base}/api/v1/PI/wxpay/capitalwithdraw`, params).then(res => res.data);
};
//提现授权
export const authorizedaddress = params => {
  return axios.post(`${base}/api/v1/PI/wxpay/authorizedaddress`, params).then(res => res.data);
}
//根据id获取任务
export const taskinfo = params => {
  return axios.post(`${base}/api/v1/PI/task/taskinfo`, params).then(res => res.data);
};
//佣金提现到金库
export const businesstreasury = params => {
  return axios.post(`${base}/api/v1/PI/wxpay/businesstreasury`, params).then(res => res.data);
};
//佣金提现
export const businesspayment = params => {
  return axios.post(`${base}/api/v1/PI/wxpay/businesspayment`, params).then(res => res.data);
};
//资产明细
export const assetbreakdown = params => {
  return axios.post(`${base}/api/v1/wxpay/assetbreakdown`, params).then(res => res.data);
};
//确认重置操作密码
export const resetpaw = params => {
  return axios.post(`${base}/api/v1/PI/resetpaw`, params).then(res => res.data);
};
//更新状态
export const updateorderstatus = params => {
  return axios.post(`${base}/api/v1/PI/order/updateorderstatus`, params).then(res => res.data);
};
//开启提醒
export const remindaddress = params => {
  return axios.post(`${base}/api/remind/remindaddress`, params).then(res => res.data);
};
//我已浏览
export const verification_problem = params => {
  return axios.post(`${base}/api/v1/PI/task/verification_problem`, params).then(res => res.data);
};
//我已浏览
export const audit_task = params => {
  return axios.post(`${base}/api/v1/PI/order/audit_task`, params).then(res => res.data);
};
//身份证校验
export const idcode_Info = params => {
  return axios.post(`${base}/api/v1/register/idcode_Info`, params).then(res => res.data);
};
//评论页面
export const evaluate_get = params => {
  return axios.post(`${base}/api/v1/PI/task/pjget`, params).then(res => res.data);
};
//提交评价
export const evaluate_post = params => {
  return axios.post(`${base}/api/v1/PI/task/pj_submit`, params).then(res => res.data);
};
//任务取消评价
export const evaluate_cancel = params => {
  return axios.post(`${base}/api/v1/PI/task/pjcancel`, params).then(res => res.data);
};
//登录注册 -- 邀请码
export const authorize_login = params => {
  return axios.post(`${base}/api/authorize_login`, params).then(res => res.data);
};
//邀请二维码
export const generate_img = params => {
  return axios.get(`${base}/api/v1/PI/user/generate_img`, params).then(res => res.data);
};

